<?php
/**
 *  后台头部
 */

class Admin_Page_Head extends Admin_Page_Abstract
{
    public function validate(ME_Request $input, ME_Response $output)
    {
        $input->doJump = true;
        $adminInfo = Libs_UcUser::getAdminLoginInfo($input,$output);
        $input->adminUser = $output->adminUser = $adminInfo[0];
        return true;
    }

    public function doDefault(ME_Request $input, ME_Response $output)
    {

        //APP缓存
        $appCache = $this->loadCache("Global_App",array());
        $option = array('data'=>$appCache,'type'=>'N','name'=>'appId','id'=>'appId','valCol'=>'cnName');
        $output->appSelect = $appCache ? Libs_GlobalFunc::createSelectElement($option) : '';
        $output->setTemplate("Head");
    }

}
